package com.spring.money;

public class Service {
		private Dao dao;

		public void setDao(Dao dao) {
			this.dao = dao;
		}
		//调用dao方法
		//业务逻辑层，写转账业务
		public void accountMoney(){
			dao.lessMoney();
			//int i=10/0;
			dao.moreMoney();
		}
}
